package top.whysu.rongcloud.api.dto.messages;

import io.rong.messages.BaseMessage;
import io.rong.util.GsonUtil;

public class GroupNtfMessage extends BaseMessage{
    private String operatorUserId = "";
    private String operation = "";
    private String data = "";
    private String message = "";
    private String extra = "";
    private static final transient String TYPE = "RC:GrpNtf";

    public GroupNtfMessage(String operatorUserId, String operation, String data, String message, String extra) {
        this.operatorUserId = operatorUserId;
        this.operation = operation;
        this.data = data;
        this.message = message;
        this.extra = extra;
    }

    @Override
    public String getType() {
        return "RC:GrpNtf";
    }

    public String getOperatorUserId() {
        return operatorUserId;
    }

    public void setOperatorUserId(String operatorUserId) {
        this.operatorUserId = operatorUserId;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getExtra() {
        return extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }

    @Override
    public String toString() {
        return GsonUtil.toJson(this, GroupNtfMessage.class);
    }
}
